Generate Test Cases from Equivalence Classes

This test case generator uses the existing equivalence classes in your project to produce test cases and variants. The generated test cases and variants will cover all selected equivalence classes. You can choose to cover all equivalence classes in just one test case or create a test case for each equivalence class. The generated variants will contain Channel steps for the specified equivalence class.

To generate test cases from equivalence classes:

  1. Create at least one equivalence class, see Equivalence Classes.
  2. Click Generate Test Cases|from Equivalence Classes.
  3. Select the channels and/or parameters from the available in list on the left hand side. Then, use the arrow buttons to move the selected declarations to the list on the right hand side and click Next. Alternatively, use double-click.

Select signals to generate variants

  1. By default, all equivalence classes are selected. However, you can always choose which equivalence classes to include by clicking on the three dots button "..." in the Equivalence Classes column.

Select equivalence classes to include

The three dots button "..." is only visible when you click in the row of the Equivalence Classes column.
  1. Select Combinatorics.

Select combinatorics method

Create single probes

Generates a single test case o variant where only one signal is assigned to one equivalence class.

Always pair two equivalence classes

Generates one variant / test case for each pair of equivalence classes and signals, resulting in all possible combinations.

  1. Set the Testing of boundaries to include left and right equivalence classes boundaries, this is, the minimum and maximum value of each equivalence class.
  2. Select the Merge all probes into one variant using a sequence to concentrate all probes into a single test case or variant. This will reduce the amount of test cases and variants produced in the Project view. You can also specify the Wait time between sequences (Wait step duration between the individual probes).

Merge all probes into one variant using a sequence

Where the test cases or variants are created

If you select a test case or a test case folder in the Project view, a new folder with test cases is created there. If you select a variant or a variant group, a new folder with variants is created there. Also a new folder with the respective test cases corresponding to these variants is created in the project’s test cases folder. The newly created variants and test cases are always placed in a group named Equivalence Classes <date><time>.